﻿@model PhoneBilling.Models.TraiffDetailModel
@{
    ViewBag.Title = "费率表明细编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{ 
    <div >
        @Html.HiddenFor(m=>m.TraiffID)

    
        <div class="input-text">
             @Html.LabelFor(m => m.区号)
@{
    if (Model.IsNew)
    {
             @Html.TextBoxFor(m => m.区号)
             @Html.ValidationMessageFor(m => m.区号, new { style = "color:Red" })
    }else 
    {
              @Html.DisplayFor(m => m.区号)
              @Html.HiddenFor(m => m.区号)
    }
}
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.地名)
             @Html.TextBoxFor(m => m.地名)
             @Html.ValidationMessageFor(m => m.地名, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.话类)
@{
        if (Model.IsNew)
        {
             @Html.DropDownListFor(m => m.话类, new SelectList(Model.AreaTypeList, "ID", "Name"), new { style = "input-text" })
             @Html.ValidationMessageFor(m => m.话类, new { style = "color:Red" })
        }
        else
        {
             @Html.DisplayFor(m => m.话类)
             @Html.HiddenFor(m => m.话类)
        }
}
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.分段计费方法)
             @Html.DropDownListFor(m => m.分段计费方法, new SelectList(Model.SliceList, "ID", "Name"), new { style = "input-text" })
             @Html.ValidationMessageFor(m => m.分段计费方法, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.基本费)
             @Html.TextBoxFor(m => m.基本费)
             @Html.ValidationMessageFor(m => m.基本费, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.附加费)
             @Html.TextBoxFor(m => m.附加费)
             @Html.ValidationMessageFor(m => m.附加费, new { style = "color:Red" })
        </div>

        <div class="input-text">
             @Html.LabelFor(m => m.服务费)
             @Html.TextBoxFor(m => m.服务费)
             @Html.ValidationMessageFor(m => m.服务费, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.基本费计次秒)
             @Html.TextBoxFor(m => m.基本费计次秒)
             @Html.ValidationMessageFor(m => m.基本费计次秒, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.服务费计次秒)
             @Html.TextBoxFor(m => m.服务费计次秒)
             @Html.ValidationMessageFor(m => m.服务费计次秒, new { style = "color:Red" })
        </div>
        <p class="submit">
            <input type="submit" value="确定" class="input-submit" />
        </p>
    </div>
}


